/********************************************************************************
* File Name:	stuaddlist.h
* Description:	第10章实例训练          
* Reference book:《Linux环境下Qt4图形界面与MySQL编程》，机械工业出版社.2012.1  
* E_mail: openlinux2011@gmail.com		                
*
********************************************************************************/
#ifndef STU_ADDLIST_H
#define STU_ADDLIST_H
#include <QtGui/QWidget>
#include <QSqlTableModel>
#include <QMessageBox>
#include <QSqlError>
#include <QString>
#include <QSqlRelationalTableModel>
#include "ui_stuaddlist.h"

//点菜处理类
class StuAddList : public QDialog,public Ui_StuAddList
{
        Q_OBJECT
private:
    QSqlTableModel *addListMenuModel;
    QSqlRelationalTableModel *andListOrderModel;
public:
        StuAddList(QWidget* parent = 0 );
        void StuAddList_load();    
private slots:
         void stuDeleteOrder_clicked(); //删除已点菜
         void stuAddOrder_clicked(); //点菜
         void stuSubmitOrder_clicked(); //提交点菜
};
#endif // STU_ADDLIST_H
